//导入验证规则中间件
const expressJoi = require('@escook/express-joi');
//导入验证规则
const {reg_login_schema} = require('../schema/farm.js');

const farm_handler = require('../router_hanbler/farm.js');
const express = require('express');
const router = express.Router();
// 牧场入驻接口
router.post('/register',farm_handler.farmAdd);
module.exports = router;

//登录接口
router.post('/login',farm_handler.farmLogin);